package com.utils;


import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.TextView;
import android.widget.Toast;
import com.shareup.R;


public class ShowToastClass {

    public static void message(String message, Context context) {

        LayoutInflater infl = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
        //
        View v = infl.inflate(R.layout.dialog_action_toast, null);
        //
        TextView txtmessage = (TextView) v.findViewById(R.id.dialog_action_text_message);
        //
        txtmessage.setText(message);
        //
        Toast tost = new Toast(context);
        tost.setView(v);
        tost.setDuration(Toast.LENGTH_SHORT);
        //
        tost.show();
    }
}
